<%@page import="java.sql.*" %>
<%@page import="java.util.*" %>
<%@ page import="com.hline.kbcss.MyDriver"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::KBCSS::</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" media="screen" /><script type="text/javascript" src="js/ajaxformsemail.js"></script>
</head>
<body>
<div id="mainbg">
<!-- header begins -->
<%String uname=(String)session.getAttribute("uname");
String userid=(String)session.getAttribute("userid");
//int uid=Integer.parseInt(userid);


%>

<div id="header">
	<div id="buttons">
		<div class="menu_width">
		<ul>
			   
			<li><a class="active">Welcome&nbsp;&nbsp;<%=uname%></a></li>

		
	
			
			
			<li><a href="logout.jsp" title="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logout</a></li>
		</ul>
		</div>
	</div>
	<div id="logo">
		<a href="#">Knowledge Based Community Sharing System</a>
		<h5>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--Interaction With Industry</h5>
		
	</div>
<!-- header ends -->
<!-- content begins -->
<div id="main">
<div id="main_top"></div>
<div id="content_bg">
  <div id="content"></div>
  <div id="right"> </br>
    <h2>My Account</h2>
    <div class="categories">
       <ul>
        <li><a href="articles.jsp">Articles</a></li>        
        <li><a href="mat.jsp">Materials</a></li>
        <li><a href="res.jsp">Research papers</a></li>
        <li><a href="postma.jsp">Post Material/Research papers</a></li>
                <li><a href="postarticle.jsp">Post Articles</a></li>
        <li><a href="reports.jsp">Reports</a></li>
        <li><a href="cp.jsp">Change Password</a></li>
      </ul>
    </div>
  </div>
  <div class="rrr">
     <div class="TabbedPanelsContentGroup">
       <div class="TabbedPanelsContent">
         <div class="top">
           <table width="100%" border="1"><form name="agent" method="post" action="insertma.jsp" enctype="multipart/form-data">
             <tr>
               <td height="70"></td>
               <td><strong>Post Material/Research papers</strong></td>
             </tr>
             <tr>
               <td width="11%" height="50">&nbsp;</td>
               <td width="19%"><table width="100%" height="209" border="1">
                   <tr>
                     <td width="20%" height="45">Posting</td>
                     <td width="5%">:</td>
                     <td width="75%"><select name="mrp" required id="mrp" value="" onBlur="setAttr(this.name,this.value)">
                       <option value="">--Select--</option>
                       <option value="m">Material</option>
                       <option value="rp">Researh Paper</option>                       
                     </select></td>
                   </tr>
                   <tr>
                     <td height="44">Posting On</td>
                     <td>:</td>
                     <td> <%Statement st1=MyDriver.getConnection("READ");
						 ResultSet rs1=st1.executeQuery("select likes from user where userid='"+userid+"'");
						 String ll="";
						 if(rs1.next()){
							 ll=rs1.getString("likes");
						 }
						 
						 String qyr="";
						 StringTokenizer st = new StringTokenizer(ll, ",");
%>
             <select name="ptech" required onBlur="setAttr(this.name,this.value)">
               <option value="">--Select--</option><%while (st.hasMoreTokens()) {
    String w = st.nextToken();
%>
               <option value="<%=w%>"><%=w%></option>
               <%}%>
             </select></td>
                   </tr>
                   <tr>
                     <td height="37">Title</td>
                     <td>:</td>
                     <td><input type="text" name="title" required="required" id="title" onBlur="setAttr(this.name,this.value)"/></td>
                   </tr>
                   <tr>
                     <td height="42">Upload File</td>
                     <td>:</td>
                     <td><input type="file" name="file2" required="required" id="file2" onBlur="setAttr(this.name,this.value)"/></td>
                   </tr>
                   <tr>
                     <td height="27">&nbsp;</td>
                     <td>&nbsp;</td>
                     <td><input type="submit" value="Post" /></td>
                   </tr>
                 </table></td>
             </tr></form>
             
           </table>
           <center>
           <%
		   String message=request.getParameter("message");
		   if(message!=null)
		   {%>
              <strong><%=message%></strong>
			<%   }
		   %></center>
           <h3>&nbsp; </h3>
           <h3>&nbsp;</h3>
           <h3>&nbsp;</h3>
           <div align="center"></div>
           <h3 align="right"><a href="creategroup.jsp"></a></h3>
         </div>
       </div>
     </div>
   </div>

</div>

</div>
</div>   
<!-- content ends -->
<!-- footer begins -->
<div id="footer">
  <p>Copyright  2011. Designed by <a href="#" title="Flash Templates">Knowledge Based Community Sharing System</a></p>
		<p><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> </div>
<!-- footer ends -->

</div>
</div>
</body>
</html>
